package com.lovo.ssc.controller;


import com.lovo.ssc.entity.Ordergoods;
import com.lovo.ssc.service.IOrdergoodsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单商品表 前端控制器
 * </p>
 *
 * @author lovo
 * @since 2022-07-11
 */
@RestController
@RequestMapping("/ordergoods")
@Api(tags = "订单商品控制层002卢虹兵")
public class OrdergoodsController {

    @Autowired
    private IOrdergoodsService goodsService;

    @PostMapping("saveGoods")
    @ApiOperation(value = "添加订单商品")
    public boolean saveGoods(Ordergoods goods){
        return goodsService.save(goods);
    }
}
